package com.ktg.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktg.ktgcommon.domain.mainData.MdWorkshop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkshopMapper {
    Page<MdWorkshop> selectPage(Page<MdWorkshop> page,
                                @Param("workshopCode") String workshopCode,
                                @Param("workshopName") String workshopName);

    MdWorkshop checkWorkshopById(Long workshopId);

    Integer changeMdWorkshop(MdWorkshop mdWorkshop);

    Integer addMdWorkshop(MdWorkshop mdWorkshop);

    Integer delWorkshop(Long workshopId);

    Integer delClientIdArray(List<Long> arrayWorkshopId);

    List<MdWorkshop> checkAll();
}
